{
  "tasktypes": {
    "tasktype": [
    {{foreach from=$tasktypes item=tasktype name=fetasktypes}}
      {
        "id": "{{$tasktype->getId()}}",
        "name": "{{$tasktype->getName()}}",
        "desc": "{{$tasktype->getDescription()}}",
        "order": "{{$tasktype->getOrderId()}}"
      }
      {{if $smarty.foreach.fetasktypes.last}} {{else}},{{/if}}
      {{/foreach}}
    ]
  }
}